import React,{lazy} from 'react'
const List = lazy(()=>import('../pages/List/Index.jsx'))
const Detail = lazy(()=>import('../pages/Detail/Index.jsx'))
const Pj = lazy(()=>import('../pages/Pj/Index.jsx'))
const Order = lazy(()=>import('../pages/Order/Index.jsx'))
const User = lazy(()=>import('../pages/User/Index.jsx'))
const Orderdetail = lazy(()=>import('../pages/Orderdetail/Index.jsx'))
const Success = lazy(()=>import('../pages/success/Index.jsx'))
export const router=[
    {
        path:'/',
        element:<List/>
    },
    {
        path:'/detail/:id',
        element:<Detail/>
    },
    {
        path:'/pj',
        element:<Pj/>
    },
    {
        path:'/order/:id',
        element:<Order/>
    },
    {
        path:'/user',
        element:<User/>
    },
    {
        path:'/orderlist/:id',
        element:<Orderdetail/>
    },
    {
        path:'/success',
        element:<Success/>
    },
]